package com.ruoyi.am.utils;

import com.ruoyi.am.controller.AmRosterController;
import com.ruoyi.am.service.IAmCarPlaceService;
import com.ruoyi.am.service.IAmDriverService;
import com.ruoyi.am.service.IAmRouteService;

public class BeanUtil {

    public BeanUtil() {
    }

    public BeanUtil(IAmDriverService iAmDriverService, AmRosterController amRoster, IAmRouteService iAmRouteService, IAmCarPlaceService iAmCarPlaceService) {
        BeanUtil.iAmDriverService = iAmDriverService;
        AmRoster = amRoster;
        BeanUtil.iAmRouteService = iAmRouteService;
        BeanUtil.iAmCarPlaceService = iAmCarPlaceService;
    }

    private static IAmCarPlaceService iAmCarPlaceService = null;

    public static IAmCarPlaceService getiAmCarPlaceService() {
        return iAmCarPlaceService;
    }

    public static void setiAmCarPlaceService(IAmCarPlaceService iAmCarPlaceService) {
        BeanUtil.iAmCarPlaceService = iAmCarPlaceService;
    }

    private static IAmDriverService iAmDriverService = null;

    private static AmRosterController AmRoster = null;

    public static IAmRouteService getiAmRouteService() {
        return iAmRouteService;
    }

    private static IAmRouteService iAmRouteService = null;

    public static IAmDriverService getiAmDriverService() {
        return iAmDriverService;
    }

    public static void setiAmRouteService(IAmRouteService iAmRouteService) {
        BeanUtil.iAmRouteService = iAmRouteService;
    }

    public void setiAmDriverService(IAmDriverService iAmDriverService) {
        BeanUtil.iAmDriverService = iAmDriverService;
    }

    public static AmRosterController getAmRoster() {
        return AmRoster;
    }

    public void setAmRoster(AmRosterController amRoster) {
        AmRoster = amRoster;
    }

}
